import {post} from '@/utils/AxiosPlugin'
const state  = {
	companyLists: []
}
const actions = {
	getCompnayList:({params,commit,error})=>{
		post('/company/getCompanyList',{},(data)=> {
			commit("updateCompanyList",data);
		},(err)=>{})
	}
}
const mutations={
  updateCompnayList:(state,data)=>{
   	 state.companyLists = data
  }
}
const getters ={
  companyLists : state=>state.companyLists
}
export default{
	state,
	actions,
	mutations,
	getters
}
